package com.supermap.business.product.agri;

import com.alibaba.dubbo.config.annotation.Reference;
import com.supermap.dubbo.api.cq.product.agri.AgriProduct;
import com.supermap.dubbo.api.cq.product.agri.AgriProductService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;


/**
 * @author aqua
 * @description
 * @date 2018年11月12 下午 5:13
 * @email 1301584033@qq.com
 */
@Controller
@RequestMapping("/product/agri")
public class AgriProductController {

    @Reference(timeout = 100000)
    private AgriProductService agriProductService;
    @RequestMapping("/getAgriProductTimeDesc")
    @ResponseBody
    public List<AgriProduct> getAgriProductTimeDesc(String areaCode,String pageSize){
       return agriProductService.getAgriProductTimeDesc(areaCode,pageSize);
    }


}
